#ifndef __POWER_MANAGE_H__
#define __POWER_MANAGE_H__
#include "rtthread.h"
#include "rtdevice.h"
#include "stm32f10x.h"
#include "rtconfig.h"
#include "appconfig.h"
#include "protocol.h"


//系统可以进入睡眠
void rt_thread_entry_sleep(rt_thread_t thread);

//系统恢复正常工作
void rt_thread_entry_work(rt_thread_t thread);

void uart_manage(const char *name,rt_bool_t cmd);

rt_uint16_t* update_ask_cycle_get(void);

void set_system_stop_cycle(rt_uint16_t value);

rt_uint16_t read_rtc_bkp1(void);



#endif

